package com.stlm2.dems.dao;

import com.stlm2.core.base.BaseDao;
import com.stlm2.dems.entity.GoodsCategory;

import java.util.List;

public interface GoodsCategoryDao extends BaseDao<GoodsCategory> {

    public List<GoodsCategory> getByLevel(Integer goodsCategoryLevelValue);

    public List<GoodsCategory> getByParentCategoryId(Integer parentCategoryId);

    public GoodsCategory getByNameAndParentCategoryId(String name,Integer parentCategoryId);

    public GoodsCategory getByName(String name);

    public List<GoodsCategory> getByTypeAndLevel(Integer categoryType,Integer goodsCategoryLevelValue);

}